package com.kgc.dao.mapper;

import com.kgc.entity.Activities;
import com.kgc.entity.Participants;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ActivitiesMapper {
//    添加活动
    int addAction(Activities activities);

    //删除活动
    int deleteAction(Integer activityId);

    //修改活动
    int updateAction(Activities activities);

    //用户查看所有活动
    List<Activities> getAllActivities();


    //用户报名指定活动
    int userSignUp(@Param("activityId") Integer activityId,
                   @Param("userPhone") String userPhone,
                   @Param("userId") Integer userId);

    //查询已结束活动
    List<Activities> getEndActivities();

    //查询未结束活动
    List<Activities> getStartActivities();

    //管理端查询全部活动
    List<Activities> getAllActivities1();


    List<Activities> getUserSignUpActivities(Integer userId);
}
